package com.hzit.utilt;

import com.alibaba.fastjson.JSON;
import com.hzit.entity.R;
import com.hzit.entity.Student;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public class ResponseUtil {
	public static void out(HttpServletResponse resp, R<?> r) {
		try {
			resp.getWriter().println(JSON.toJSONString(r));
			resp.getWriter().flush();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
